package com.flitsneak.designpatterns.creationalpatterns.singleton;

/**
 * Author: flitsneak
 * Date: 2022/5/31 13:41
 * Description: 懒汉式
 */
public class LazySingleton {
    private static LazySingleton lazySingleton;

    private LazySingleton() {
    }

    public static LazySingleton getLazySingleton() {
        if (lazySingleton == null) {
            lazySingleton = new LazySingleton();
        }
        return lazySingleton;
    }
}
